<!DOCTYPE html>
<html lang="en">
  <head>
    <title>WhiteBalanceGains Extension Reference</title>
    <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../../js/jquery.min.js" defer></script>
    <script src="../../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Extension/WhiteBalanceGains" class="dashAnchor"></a>
    <a title="WhiteBalanceGains Extension Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../../index.html">NextLevel Docs</a> (62% documented)</p>
        <p class="header-right"><a href="https://github.com/NextLevel/NextLevel"><img src="../../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../../index.html">NextLevel Reference</a>
        <img id="carat" src="../../img/carat.png" />
        WhiteBalanceGains Extension Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Classes/NextLevel.html">NextLevel</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelARConfiguration.html">NextLevelARConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelAudioConfiguration.html">NextLevelAudioConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelBufferRenderer.html">NextLevelBufferRenderer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelClip.html">NextLevelClip</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelConfiguration.html">NextLevelConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelConfiguration/AspectRatio.html">– AspectRatio</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelGIFCreator.html">NextLevelGIFCreator</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelPhotoConfiguration.html">NextLevelPhotoConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelSession.html">NextLevelSession</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NextLevelVideoConfiguration.html">NextLevelVideoConfiguration</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB15ClipFilenameKeySSvp">NextLevelClipFilenameKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB15ClipInfoDictKeySSvp">NextLevelClipInfoDictKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB11ErrorDomainSSvp">NextLevelErrorDomain</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB19PhotoCroppedJPEGKeySSvp">NextLevelPhotoCroppedJPEGKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB12PhotoJPEGKeySSvp">NextLevelPhotoJPEGKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB16PhotoMetadataKeySSvp">NextLevelPhotoMetadataKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB16PhotoRawImageKeySSvp">NextLevelPhotoRawImageKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Global Variables.html#/s:9NextLevel0aB17PhotoThumbnailKeySSvp">NextLevelPhotoThumbnailKey</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Enums/NextLevelAuthorizationStatus.html">NextLevelAuthorizationStatus</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/NextLevelCaptureMode.html">NextLevelCaptureMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/NextLevelDeviceType.html">NextLevelDeviceType</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/NextLevelError.html">NextLevelError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/NextLevelMirroringMode.html">NextLevelMirroringMode</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureConnection.html">AVCaptureConnection</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureDevice.html">AVCaptureDevice</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureDevice/Format.html">– Format</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureDevice/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureDevice/WhiteBalanceGains.html">– WhiteBalanceGains</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureDeviceInput.html">AVCaptureDeviceInput</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/AVCaptureVideoOrientation.html">AVCaptureVideoOrientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/CIContext.html">CIContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/CMSampleBuffer.html">CMSampleBuffer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Comparable.html">Comparable</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Data.html">Data</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Date.html">Date</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/FileManager.html">FileManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/UIImage.html">UIImage</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelDelegate.html">NextLevelDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols.html#/NextLevelDepthDataDelegate">NextLevelDepthDataDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelDeviceDelegate.html">NextLevelDeviceDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelFlashAndTorchDelegate.html">NextLevelFlashAndTorchDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelMetadataOutputObjectsDelegate.html">NextLevelMetadataOutputObjectsDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelPhotoDelegate.html">NextLevelPhotoDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelPortraitEffectsMatteDelegate.html">NextLevelPortraitEffectsMatteDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelPreviewDelegate.html">NextLevelPreviewDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/NextLevelVideoDelegate.html">NextLevelVideoDelegate</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB17DeviceOrientationa">NextLevelDeviceOrientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB14DevicePositiona">NextLevelDevicePosition</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB12ExposureModea">NextLevelExposureMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB9FlashModea">NextLevelFlashMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB9FocusModea">NextLevelFocusMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB9TorchModea">NextLevelTorchMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB22VideoStabilizationModea">NextLevelVideoStabilizationMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:9NextLevel0aB16WhiteBalanceModea">NextLevelWhiteBalanceMode</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>WhiteBalanceGains</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">WhiteBalanceGains</span></code></pre>

                </div>
              </div>
            
          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:So26AVCaptureWhiteBalanceGainsa9NextLevelE9normalizeyABSo0A6DeviceCF"></a>
                    <a name="//apple_ref/swift/Method/normalize(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:So26AVCaptureWhiteBalanceGainsa9NextLevelE9normalizeyABSo0A6DeviceCF">normalize(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Normalize gain values for a capture device.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">normalize</span><span class="p">(</span><span class="n">_</span> <span class="nv">captureDevice</span><span class="p">:</span> <span class="kt">AVCaptureDevice</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">AVCaptureDevice</span><span class="o">.</span><span class="kt">WhiteBalanceGains</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>captureDevice</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Device used for adjustment.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Normalized gains.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2019 <a class="link" href="http://nextlevel.engineering" target="_blank" rel="external">Patrick Piemonte</a>. All rights reserved. (Last updated: 2019-05-21)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
